package org.yxt.springcloud.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface StorageMapper {

    /**
     * 减去库存
     *
     * @param productId
     * @param total
     */
    void updateDetract(@Param("productId") int productId, @Param("total") int total);
}
